<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="">
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>客户名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" required name="name" value="{$result.name}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-cid" class="col-sm-2 control-label"><span class="form-required">*</span>行业类别</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" required value="{$result.cname}"
						   placeholder="请选择行业类别" onclick="doSelectLayerApi(this);" split="-" data-is_full="true"
						   data-url="{:url('/api/business/cate/check')}" data-id="input-cid" name="cname"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.cid}" name="cid"
						   id="input-cid"/>
				</div>
			</div>
			<div class="form-group">
				<label for="input-phone" class="col-sm-2 control-label">联系电话</label>
				<div class="col-md-6 col-sm-10">
					<input type="tel" class="form-control" id="input-phone" name="phone" value="{$result.phone}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-manager" class="col-sm-2 control-label"><span class="form-required">*</span>负责人</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" required value="{$result.mname}"
						   placeholder="请选择负责人" onclick="doSelectLayerApi(this);" data-is_full="true"
						   data-url="{:url('/api/department/user/select_h5')}" data-id="input-manager" name="layer_temp[1]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.manager}" name="manager"
						   id="input-manager"/>
				</div>
			</div>
			<div class="form-group">
				<label for="input-source" class="col-sm-2 control-label"><span class="form-required">*</span>客户来源</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" required value="{$result.nname}"
						   placeholder="请选择客户来源" onclick="doSelectLayerApi(this);" data-is_full="true"
						   data-url="{:url('/api/resource/cate/select_h5',['type'=>2])}" data-id="input-source" name="layer_temp[2]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.source}" name="source"
						   id="input-source"/>
				</div>
			</div>
			<div class="form-group">
				<label for="input-customer_level" class="col-sm-2 control-label"><span class="form-required">*</span>客户级别</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" required value="{$result.level_name}"
						   placeholder="请选择客户级别" onclick="doSelectLayerApi(this);" data-is_full="true"
						   data-url="{:url('/api/resource/cate/select_h5',['type'=>3])}" data-id="input-customer_level" name="layer_temp[3]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.customer_level}" name="customer_level"
						   id="input-customer_level"/>
				</div>
			</div>
			<div class="form-group">
				<label for="input-createtime" class="col-sm-2 control-label">录入时间</label>
				<div class="col-md-6 col-sm-10">
					<input type="datetime-local" class="form-control" id="input-createtime" data-max-date="{:date('Y-m-d\\TH:i')}" value="{$result.createtime|date='Y-m-d\\TH:i',###}" required name="createtime">
				</div>
			</div>
			<div class="form-group">
				<label for="input-price" class="col-sm-2 control-label">价格</label>
				<div class="col-md-6 col-sm-10" style="padding: 0 15px;">
					<div class="input-group">
						<span class="input-group-addon">¥</span>
						<input type="number" class="form-control" id="input-price" name="price" value="{$result.price}">
						<span class="input-group-addon">万元</span>
					</div>
					<p class="help-block">（两位小数）</p>
				</div>
			</div>
			<div class="form-group">
				<label for="textarea-remark" class="col-sm-2 control-label">备注</label>
				<div class="col-md-6 col-sm-10">
					<textarea name="remark" class="form-control" id="textarea-remark" rows="3">{$result.remark}</textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$result.id}"/>
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">返回</a>
				</div>
			</div>
		</form>
	</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>